package com.project.srtp.secure.dto.resp;

import lombok.Data;

import java.util.List;

/**
 * @author 曹行阳
 * @version 0.1
 * @date 2025/6/15 17:44
 */
@Data
public class InitKeyRespDTO {
    private IdentityKeyDTO identityKey;
    private SignedPreKeyDTO signedPreKey;
    private List<PreKeyDTO> preKeys;
    private String passwordHash;
    private String passwordSalt;
    private String oneTimeId;
    private Integer localId;


    @Data
    public static class IdentityKeyDTO {
        private Integer id;
        private String publicKey;
        private String cipher;
        private String salt;
        private String timestamp;
    }

    @Data
    public static class SignedPreKeyDTO {
        private Integer id;
        private String publicKey;
        private String signature;
        private String cipher;
        private String salt;
        private String timestamp;

    }

    @Data
    public static class PreKeyDTO {
        private Integer id;
        private String publicKey;
        private String cipher;
        private String salt;
    }
}
